import request from '@/utils/request'

// 创建传感器租户分类
export function createSensorTenantType(data) {
  return request({
    url: '/hardware/sensor-tenant-type/create',
    method: 'post',
    data: data
  })
}

// 创建传感器租户分类
export function createBatchSensorTenantType(data) {
  return request({
    url: '/hardware/sensor-tenant-type/create-batch',
    method: 'post',
    data: data
  })
}


// 更新传感器租户分类
export function updateSensorTenantType(data) {
  return request({
    url: '/hardware/sensor-tenant-type/update',
    method: 'put',
    data: data
  })
}

// 删除传感器租户分类
export function deleteSensorTenantType(id) {
  return request({
    url: '/hardware/sensor-tenant-type/delete?id=' + id,
    method: 'delete'
  })
}

// 获得传感器租户分类
export function getSensorTenantType(id) {
  return request({
    url: '/hardware/sensor-tenant-type/get?id=' + id,
    method: 'get'
  })
}


// 获得传感器租户分类列表
export function getSensorTenantTypeList(query) {
  return request({
    url: '/hardware/sensor-tenant-type/list',
    method: 'get',
    params: query
  })
}

// 获得传感器租户分类详情列表
export function getSensorTenantTypeInfoList(query) {
  return request({
    url: '/hardware/sensor-tenant-type/info-list',
    method: 'get',
    params: query
  })
}


// 获得传感器租户分类分页
export function getSensorTenantTypePage(query) {
  return request({
    url: '/hardware/sensor-tenant-type/page',
    method: 'get',
    params: query
  })
}

// 导出传感器租户分类 Excel
export function exportSensorTenantTypeExcel(query) {
  return request({
    url: '/hardware/sensor-tenant-type/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
